package com.caregiver.watch.business.user.model.dto;

import com.caregiver.watch.business.user.enums.CareRecipientWearingHabitEnum;
import com.caregiver.watch.business.user.enums.CareRelationshipEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Description: 编辑亲友设备
 * @Author 疆戟
 * @Date 2025/10/12 18:21
 * @Version 1.0
 */
@Data
public class EditContactDeviceParam {

    /**
     * 设备ID
     */
    @Schema(description = "设备ID")
    private Long deviceId;

    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String deviceName;

    /**
     * 被照护人ID
     */
    @Schema(description = "被照护人ID")
    private Long recipientId;

    /**
     * 被照护人姓名
     */
    @Schema(description = "被照护人姓名")
    private String recipientName;

    /**
     * 与用户关系（本人、父亲、母亲、配偶等）
     */
    @Schema(description = "与用户关系（本人、父亲、母亲、配偶等）")
    private CareRelationshipEnum relationship;

    /**
     * 性别（0-未知 1-男 2-女）
     */
    @Schema(description = "性别（0-未知 1-男 2-女）")
    private Integer gender;

    /**
     * 生日
     */
    @Schema(description = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate birthday;

    // 腕围
    @Schema(description = "腕围")
    private Integer wristCircumference;

    // 身高
    @Schema(description = "身高(cm)")
    private Integer height;

    // 体重
    @Schema(description = "体重(kg)")
    private Integer weight;

    /**
     * 佩戴习惯
     */
    @Schema(description = "佩戴习惯 UNKNOWN 未知 LEFT_HAND 左手 RIGHT_HAND 右手")
    private CareRecipientWearingHabitEnum wearingHabit;
}
